package scientistengineer.blogspot.affrpor;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;


public class Introduction extends Activity {
	
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		//setContentView(R.layout.greetings_menu);
		setContentView(R.layout.list_two_buttons2);
		
		String [] Beginner_mp3 =
			{
				"affr0",
				"affr0",
				"affr1",
				"affr2",
				"affr3",
				"affr4",
				"affr5",
				"affr6",
				"affr7",
				"affr8",
				"affr9",
				"affr10",
				"affr11",
				"affr12",
				"port0",
				"port1",
				"port2",
				"port3",
				"port4",
				"port5",
				"port6",
				"port7",
				"port8",
				"port9",
				"port10",
				"port11",
				"port12",
				"port13"
			};
		
		
		
		final String [] Text_Port =
			{
				"Bem",
				"Bom",
				"Mau",
				"Sorte",
				"Como",
				"a senhora",
				"o senhor",
				"se cuida",
				"boa sorte",
				"Como vai",
				"E ai?",
				"Tudo Bem ?",
				"Muito Bem",
				"Mais ou menos"
			};
		
		final String [] Text_Affr =
			{
				"Goed",
				"Goed",
				"sleg",
				"geluk",
				"hoe",
				"mevrou",
				"meneer",
				"goed gan",
				"sterkte",
				"hoe gaan dit",
				"wat's nuus ?",
				"als reg ?",
				"baie goed, dankie",
				"orait"
			};
		
		ListView listAdapter = (ListView) findViewById(R.id.greetingsListView);
		
		ListSpeakingPortAff introSpeaking = 
				new ListSpeakingPortAff(Introduction.this, Text_Port, Text_Affr, Beginner_mp3, listAdapter );
		
		Button testAffr = (Button) findViewById(R.id.test_affr);
		testAffr.setOnClickListener(new OnClickListener()
		{
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				TestAffr testAffr = new TestAffr(Text_Port, Text_Affr);
			}
			
		});
		
		Button testPort = (Button) findViewById(R.id.test_port);
		testPort.setOnClickListener(new OnClickListener()
		{
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				
			}
			
		});
		
	}
}
